package com.dcits.electronic_account.mapper;

import com.dcits.electronic_account.bean.LoginRecord;
import com.dcits.electronic_account.bean.VirtualAccount;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: CZJ
 * @Date： 2022/6/24
 */

@Repository
public interface LoginMapper {

    VirtualAccount loginByUserName(VirtualAccount virtualAccount);

    void register(VirtualAccount virtualAccount);

    void loginOut(LoginRecord loginRecord);

    void addLoginRecord(LoginRecord loginRecord);

    List<LoginRecord> getLastLoginTime(VirtualAccount virtualAccount);

    String userNameExist(VirtualAccount virtualAccount);

    String phoneExist(VirtualAccount virtualAccount);

    String idNumberExist(VirtualAccount virtualAccount);

    VirtualAccount loginByPhone(VirtualAccount virtualAccount);
}
